package com.example.test.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 基础订单表
 * </p>
 *
 * @author dz
 * @since 2022-04-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("base_orders")
@Accessors(chain = true)
public class BaseOrders extends Model<BaseOrders> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * 订单序列号
     */
    private String serialNumber;

    /**
     * 送货地址
     */
    private String shipAddress;

    /**
     * 客户id
     */
    private Long costomerId;

    /**
     * 订单状态（未完成、完成、已取消）
     */
    private String orderState;

    /**
     * 审批人id(完成时添加)
     */
    private Long orderApprovalId;

    /**
     * 总价
     */
    @TableField("sellMoney")
    private Double sellMoney;

    /**
     * 备注
     */
    private String remarks;

    @TableLogic
    private Boolean deleted;

    private Date createTime;

    private Date updateTime;

    private Date deletedTime;


}
